CVE-2024-27302
Authorization Bypass Through User-Controlled Key in go-zero
Description
go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and/or retrieve data on behalf of other users. Version 1.4.4 fixes this issue.
INFO
Published Date :
March 6, 2024, 7:15 p.m.
Last Modified :
Dec. 3, 2025, 9:26 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-27302.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-27302 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-27302
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-27302 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-27302 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 03, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:go-zero:go-zero:*:*:*:*:*:*:*:* versions up to (excluding) 1.4.4 Added Reference Type CVE: https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db Types: Patch Added Reference Type GitHub, Inc.: https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db Types: Patch Added Reference Type CVE: https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq Types: Exploit, Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq Types: Exploit, Vendor Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db Added Reference https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Mar. 06, 2024
Action Type Old Value New Value Added Description go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and/or retrieve data on behalf of other users. Version 1.4.4 fixes this issue. Added Reference GitHub, Inc. https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq [No types assigned] Added Reference GitHub, Inc. https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db [No types assigned] Added CWE GitHub, Inc. CWE-639 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N